﻿@model IEnumerable<WebSite>
@{
    ViewDataDictionary viewData = new ViewDataDictionary();
    Func<dynamic, object> itemTemplate = @<div class="image-item"><img src="@item.ImageUrl" alt="" /><a href="/Admin/Site/Edit/@item.ID" class="dialog">@item.Caption</a></div>;
    viewData["ItemTemplate"] = itemTemplate;
}
 @Html.Partial("_ImageList", this.Model, viewData)